/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package facade;

import local.ScoringFacadeLocal;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import model.Scoring;

/**
 *
 * @author Ken
 */
@Stateless
public class ScoringFacade implements ScoringFacadeLocal {

    @PersistenceContext(unitName = "IEMPPU")
    private EntityManager em;

    @Override
    public void create(Scoring a) {
        em.persist(a);
    }

    @Override
    public void edit(Scoring a) {
        em.merge(a);
    }

    @Override
    public void refresh(Scoring a) {
        em.refresh(a);
    }
}
